package com.amazon.inapp.purchasing;

public final class Item
{
  private static final String TO_STRING_FORMAT = "(%s, sku: \"%s\", price: \"%s\", itemType: \"%s\", title: \"%s\", description: \"%s\", smallIconUrl: \"%s\")";
  private final String _description;
  private final ItemType _itemType;
  private final String _price;
  private final String _sku;
  private final String _smallIconUrl;
  private final String _title;

  Item(String paramString1, String paramString2, ItemType paramItemType, String paramString3, String paramString4, String paramString5)
  {
    Validator.validateNotNull(paramString1, "sku");
    Validator.validateNotNull(paramItemType, "itemType");
    Validator.validateNotNull(paramString3, "title");
    Validator.validateNotNull(paramString4, "description");
    Validator.validateNotNull(paramString5, "smallIconUrl");
    if (ItemType.SUBSCRIPTION != paramItemType)
      Validator.validateNotNull(paramString2, "price");
    this._sku = paramString1;
    this._itemType = paramItemType;
    this._price = paramString2;
    this._title = paramString3;
    this._description = paramString4;
    this._smallIconUrl = paramString5;
  }

  public String getDescription()
  {
    return this._description;
  }

  public ItemType getItemType()
  {
    return this._itemType;
  }

  public String getPrice()
  {
    return this._price;
  }

  public String getSku()
  {
    return this._sku;
  }

  public String getSmallIconUrl()
  {
    return this._smallIconUrl;
  }

  public String getTitle()
  {
    return this._title;
  }

  public String toString()
  {
    Object[] arrayOfObject = new Object[7];
    arrayOfObject[0] = super.toString();
    arrayOfObject[1] = this._sku;
    arrayOfObject[2] = this._price;
    arrayOfObject[3] = this._itemType;
    arrayOfObject[4] = this._title;
    arrayOfObject[5] = this._description;
    arrayOfObject[6] = this._smallIconUrl;
    return String.format("(%s, sku: \"%s\", price: \"%s\", itemType: \"%s\", title: \"%s\", description: \"%s\", smallIconUrl: \"%s\")", arrayOfObject);
  }

  public static enum ItemType
  {
    static
    {
      ItemType[] arrayOfItemType = new ItemType[3];
      arrayOfItemType[0] = CONSUMABLE;
      arrayOfItemType[1] = ENTITLED;
      arrayOfItemType[2] = SUBSCRIPTION;
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.amazon.inapp.purchasing.Item
 * JD-Core Version:    0.6.2
 */